package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Person p1=new Person("张三","佛山",24);
        p1.sayHi();
        p1.eat();
        p1.sleep();

        //学生
        Student s1=new Student("黄同学","广州",13,"一年级一班","06号");
        s1.sayHi();
        s1.eat();
        s1.study();
        s1.sleep();

        //老师
        Teacher t1=new Teacher("何老师","达内",35,5000.0);
        t1.sayHi();
        t1.eat();
        t1.tuition();
        t1.sleep();

        //医生
        Doctor d1=new Doctor("王老师","大医院",24,"副主任");
        d1.sayHi();
        d1.eat();
        d1.cut();
        d1.sleep();


    }
}
